package ExampleTest;

import java.util.Scanner;

public class gugudan {

	public static void main(String[] args) {
		
				
				Scanner scan = new Scanner(System.in);
				String con;
				
				do {
					
					System.out.print("원하는 단 를 입력하세요");

				int i = scan.nextInt();

					if ( 1<i && i<10)  {
			
						System.out.println("* "+i+" 단"+" *");
			
					for(int j=1 ; j <=9; j++) {
						System.out.println(i +" x "+ j + " = "+ i*j);
						}	
					
					}
			
					else {
					 System.out.println("범위를 벗어났습니다.");
					}
				
					System.out.print("계속 입력하시겠습니까?");	
					con = scan.next();
					
					
				} while(con.equals("y"));
				
			}

	

	}

